package com.rmy.publish.domain;

import com.alibaba.fastjson2.JSONObject;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rmy.common.annotation.Excel;
import com.rmy.common.core.domain.BaseEntity;

/**
 * 控件信息对象 mips_controller_info
 *
 * @author rmy
 * @date 2023-05-26
 */
public class MipsControllerInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 控件主键 */
    private Long controllerId;

    /** 页面主键 */
    @Excel(name = "页面主键")
    private Long pageId;

    /** 控件类型 */
    @Excel(name = "控件类型")
    private String controllerType;

    /** 控件名称 */
    @Excel(name = "控件名称")
    private String controllerName;

    /** 控件大小位置 */
    @Excel(name = "控件大小位置")
    private String pos;

    /** 控件设置 */
    @Excel(name = "控件设置")
    private String setting;

    /** 控件数据 */
    @Excel(name = "控件数据")
    private String data;

    /** 排序，图层的概念 */
    @Excel(name = "排序，图层的概念")
    private Long sort;

    // 控件类型
    private String type;

    // 请求数据
    private JSONObject value;

    public void setControllerId(Long controllerId)
    {
        this.controllerId = controllerId;
    }

    public Long getControllerId()
    {
        return controllerId;
    }
    public void setPageId(Long pageId)
    {
        this.pageId = pageId;
    }

    public Long getPageId()
    {
        return pageId;
    }
    public void setControllerName(String controllerName)
    {
        this.controllerName = controllerName;
    }

    public String getControllerName()
    {
        return controllerName;
    }
    public void setPos(String pos)
    {
        this.pos = pos;
    }

    public String getPos()
    {
        return pos;
    }
    public void setSetting(String setting)
    {
        this.setting = setting;
    }

    public String getSetting()
    {
        return setting;
    }
    public void setData(String data)
    {
        this.data = data;
    }

    public String getData()
    {
        return data;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("controllerId", getControllerId())
            .append("pageId", getPageId())
            .append("controllerType", getControllerType())
            .append("controllerName", getControllerName())
            .append("pos", getPos())
            .append("setting", getSetting())
            .append("data", getData())
            .append("sort", getSort())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public String getControllerType() {
        return controllerType;
    }

    public void setControllerType(String controllerType) {
        this.controllerType = controllerType;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public JSONObject getValue() {
        return value;
    }

    public void setValue(JSONObject value) {
        this.value = value;
    }
}
